import cupk.abner.AllyControlCenter;
import cupk.abner.ConcreteAllyControlCenter;
import cupk.abner.Observer;
import cupk.abner.Player;

public class Main {
    public static void main(String[] args) {
        AllyControlCenter acc = new ConcreteAllyControlCenter();
        acc.setAllyName("比奇堡");
        Observer player1,player2,player3,player4;
        player1 = new Player("海绵宝宝");
        acc.join(player1);
        player2 = new Player("派大星");
        acc.join(player2);
        player3 = new Player("章鱼哥");
        acc.join(player3);
        player4 = new Player("痞老板");
        acc.join(player4);
        player4.beAttacked(acc);
    }
}